<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">

            <div class="layui-form-item2 layui-col-md4">
            	<label class="layui-form-label">面料编号</label>
            	<div class="layui-input-block">
            	  <input type="text" name="fabric_code" value="{$model.fabric_code??''}" placeholder="请输入产品编号" class="layui-input"  verify="must">
            	</div>
            </div>

			<div class="layui-form-item2 layui-col-md4">
				<label class="layui-form-label">色号</label>
				<div class="layui-input-block">
				  <input type="text" name="color_code" value="{$model.color_code??''}" placeholder="请输入色号" class="layui-input" >
				</div>
			</div>

			<div class="layui-form-item2 layui-col-md4">
				<label class="layui-form-label">颜色名称</label>
				<div class="layui-input-block">
				  <input type="text" name="color_name" value="{$model.color_name??''}" placeholder="请输入颜色名称" class="layui-input" >
				</div>
			</div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">面料品名</label>
            	<div class="layui-input-block">
            	  <input type="text" name="fabric_name" value="{$model.fabric_name??''}" placeholder="请输入产品名称" class="layui-input" >
            	</div>
            </div>

			<div class="layui-form-item2 layui-col-md4">
				<label class="layui-form-label">供应编号</label>
				<div class="layui-input-block">
				  <input type="text" name="sup_code" value="{$model.sup_code??''}" placeholder="请输入供应编号" class="layui-input" >
				</div>
			</div>

			<div class="layui-form-item2 layui-col-md4">
				<label class="layui-form-label">供应色号</label>
				<div class="layui-input-block">
				  <input type="text" name="sup_color" value="{$model.sup_color??''}" placeholder="请输入供应色号" class="layui-input" >
				</div>
			</div>
            
            <div class="layui-form-item2 layui-col-md4">
            	<label class="layui-form-label">供应商</label>
            	<div class="layui-input-block">
            	  <div id="sup_id_search"></div>
                  <input name="sup_id" type="hidden" value="{$model.sup_id??''}"/>
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">供应品名</label>
            	<div class="layui-input-block">
            	  <input type="text" name="fabric_name2" value="{$model.fabric_name2??''}" placeholder="请输入供应品名" class="layui-input" >
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">备注</label>
            	<div class="layui-input-block">
            	  <textarea name="remark" placeholder="备注信息" class="layui-textarea">{$model.remark??''}</textarea>
            	</div>
            </div>
            
        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
	layui.use(['form', 'jquery', 'uploads','common','mycomm','table'], function () {
		let form = layui.form;
		let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;
		let table = layui.table;
		
		mycomm.editSubmit();
		
		mycomm.selectInput("sup_id", "{:U('supplier.Main/index')}","{$model.sup_name??''}|{$model.sup_id??''}","sup_name","sup_name");
        
	})
</script>
{$LOAD_STYLE.bottom|raw}

</body>
</html>